<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="custom-style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
	<div style="overflow: hidden;">
		<div style="height: 57px;min-width: 1039px;background-size: auto 100%;background:url('');">
			<img src="titleleft.png" style="float: left;"/>
			<img src="titleright.png" alt="" style="float: right;" />
		</div>
	</div>
<!-- 制作者 Doxygen 1.8.15 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>法律声明</span></a></li>
      <li><a href="_xE9_xA6_x96_xE9_xA1_xB5.html"><span>首页</span></a></li>
      <li><a href="_xE6_x9B_xB4_xE6_x96_xB0_xE8_xAE_xB0_xE5_xBD_x95.html"><span>更新记录</span></a></li>
      <li><a href="_xE7_x8E_xAF_xE5_xA2_x83_xE9_x85_x8D_xE7_xBD_xAE.html"><span>环境配置</span></a></li>
      <li><a href="_xE7_xBC_x96_xE7_xA8_x8B_xE5_xBC_x95_xE5_xAF_xBC.html"><span>编程引导</span></a></li>
      <li class="current"><a href="modules.html"><span>接口说明</span></a></li>
      <li><a href="annotated.html"><span>结构体定义</span></a></li>
      <li><a href="_xE7_x9B_xB8_xE6_x9C_xBA_xE5_x8F_x82_xE6_x95_xB0_xE8_x8A_x82_xE7_x82_xB9_xE8_xA1_xA8.html"><span>相机参数节点表</span></a></li>
      <li><a href="examples.html"><span>示例程序</span></a></li>
      <li><a href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html"><span>状态码</span></a></li>
      <li><a href="_xE5_xB8_xB8_xE8_xA7_x81_xE9_x97_xAE_xE9_xA2_x98.html"><span>常见问题</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">采集卡初始化</div>  </div>
</div><!--header-->
<div class="contents">

<p>包含枚举采集卡、创建句柄、打开采集卡等接口  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:gad22fcad93034b5de199bc8a6c7c1f7eb"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE9_x87_x87_xE9_x9B_x86_xE5_x8D_xA1_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gad22fcad93034b5de199bc8a6c7c1f7eb">MV_CC_EnumInterfaces</a> (IN unsigned int nTLayerType, IN OUT <a class="el" href="struct_m_v___i_n_t_e_r_f_a_c_e___i_n_f_o___l_i_s_t.html">MV_INTERFACE_INFO_LIST</a> *pInterfaceInfoList)</td></tr>
<tr class="memdesc:gad22fcad93034b5de199bc8a6c7c1f7eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">枚举采集卡  <a href="#gad22fcad93034b5de199bc8a6c7c1f7eb">更多...</a><br /></td></tr>
<tr class="separator:gad22fcad93034b5de199bc8a6c7c1f7eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga62d20dad6ddb396018fe82ef5e676bb1"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE9_x87_x87_xE9_x9B_x86_xE5_x8D_xA1_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga62d20dad6ddb396018fe82ef5e676bb1">MV_CC_CreateInterface</a> (IN OUT void **handle, IN <a class="el" href="struct_m_v___i_n_t_e_r_f_a_c_e___i_n_f_o.html">MV_INTERFACE_INFO</a> *pInterfaceInfo)</td></tr>
<tr class="memdesc:ga62d20dad6ddb396018fe82ef5e676bb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建采集卡句柄  <a href="#ga62d20dad6ddb396018fe82ef5e676bb1">更多...</a><br /></td></tr>
<tr class="separator:ga62d20dad6ddb396018fe82ef5e676bb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacf547435f508f8cdd25f944ed5aa4203"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE9_x87_x87_xE9_x9B_x86_xE5_x8D_xA1_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gacf547435f508f8cdd25f944ed5aa4203">MV_CC_CreateInterfaceByID</a> (IN OUT void **handle, IN char *pInterfaceID)</td></tr>
<tr class="memdesc:gacf547435f508f8cdd25f944ed5aa4203"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过采集卡ID创建采集卡句柄  <a href="#gacf547435f508f8cdd25f944ed5aa4203">更多...</a><br /></td></tr>
<tr class="separator:gacf547435f508f8cdd25f944ed5aa4203"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac57264660ca9acb36a43c23adb2147a7"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE9_x87_x87_xE9_x9B_x86_xE5_x8D_xA1_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#gac57264660ca9acb36a43c23adb2147a7">MV_CC_OpenInterface</a> (IN void *handle, IN char *pReserved)</td></tr>
<tr class="memdesc:gac57264660ca9acb36a43c23adb2147a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开采集卡  <a href="#gac57264660ca9acb36a43c23adb2147a7">更多...</a><br /></td></tr>
<tr class="separator:gac57264660ca9acb36a43c23adb2147a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga98f4a5025eebf615499a23da0b73970d"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE9_x87_x87_xE9_x9B_x86_xE5_x8D_xA1_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga98f4a5025eebf615499a23da0b73970d">MV_CC_CloseInterface</a> (IN void *handle)</td></tr>
<tr class="memdesc:ga98f4a5025eebf615499a23da0b73970d"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭采集卡  <a href="#ga98f4a5025eebf615499a23da0b73970d">更多...</a><br /></td></tr>
<tr class="separator:ga98f4a5025eebf615499a23da0b73970d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga365d684482405b74afe9d21b986185af"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE9_x87_x87_xE9_x9B_x86_xE5_x8D_xA1_xE5_x88_x9D_xE5_xA7_x8B_xE5_x8C_x96.html#ga365d684482405b74afe9d21b986185af">MV_CC_DestroyInterface</a> (IN void *handle)</td></tr>
<tr class="memdesc:ga365d684482405b74afe9d21b986185af"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁采集卡句柄  <a href="#ga365d684482405b74afe9d21b986185af">更多...</a><br /></td></tr>
<tr class="separator:ga365d684482405b74afe9d21b986185af"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>包含枚举采集卡、创建句柄、打开采集卡等接口 </p>
<h2 class="groupheader">函数说明</h2>
<a id="gad22fcad93034b5de199bc8a6c7c1f7eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad22fcad93034b5de199bc8a6c7c1f7eb">&#9670;&nbsp;</a></span>MV_CC_EnumInterfaces()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_EnumInterfaces </td>
          <td>(</td>
          <td class="paramtype">IN unsigned int&#160;</td>
          <td class="paramname"><em>nTLayerType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___i_n_t_e_r_f_a_c_e___i_n_f_o___l_i_s_t.html">MV_INTERFACE_INFO_LIST</a> *&#160;</td>
          <td class="paramname"><em>pInterfaceInfoList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>枚举采集卡 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nTLayerType</td><td>[IN] 采集卡接口类型 </td></tr>
    <tr><td class="paramname">pInterfaceInfoList</td><td>[IN][OUT] 采集卡列表 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_interface_demo_8cpp-example.html#a32">InterfaceDemo.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="ga62d20dad6ddb396018fe82ef5e676bb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga62d20dad6ddb396018fe82ef5e676bb1">&#9670;&nbsp;</a></span>MV_CC_CreateInterface()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_CreateInterface </td>
          <td>(</td>
          <td class="paramtype">IN OUT void **&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN <a class="el" href="struct_m_v___i_n_t_e_r_f_a_c_e___i_n_f_o.html">MV_INTERFACE_INFO</a> *&#160;</td>
          <td class="paramname"><em>pInterfaceInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建采集卡句柄 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN][OUT] 采集卡句柄 </td></tr>
    <tr><td class="paramname">pInterfaceInfo</td><td>[IN] 采集卡信息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_interface_demo_8cpp-example.html#a35">InterfaceDemo.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="gacf547435f508f8cdd25f944ed5aa4203"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacf547435f508f8cdd25f944ed5aa4203">&#9670;&nbsp;</a></span>MV_CC_CreateInterfaceByID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_CreateInterfaceByID </td>
          <td>(</td>
          <td class="paramtype">IN OUT void **&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN char *&#160;</td>
          <td class="paramname"><em>pInterfaceID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过采集卡ID创建采集卡句柄 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN][OUT] 采集卡句柄 </td></tr>
    <tr><td class="paramname">pInterfaceID</td><td>[IN] 采集卡ID，比如采集卡序列号 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>

</div>
</div>
<a id="gac57264660ca9acb36a43c23adb2147a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac57264660ca9acb36a43c23adb2147a7">&#9670;&nbsp;</a></span>MV_CC_OpenInterface()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_OpenInterface </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN char *&#160;</td>
          <td class="paramname"><em>pReserved</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>打开采集卡 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 采集卡句柄 </td></tr>
    <tr><td class="paramname">pReserved</td><td>[IN] 预留，直接填NULL </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_interface_demo_8cpp-example.html#a36">InterfaceDemo.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="ga98f4a5025eebf615499a23da0b73970d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga98f4a5025eebf615499a23da0b73970d">&#9670;&nbsp;</a></span>MV_CC_CloseInterface()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_CloseInterface </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭采集卡 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 采集卡句柄 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_interface_demo_8cpp-example.html#a37">InterfaceDemo.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="ga365d684482405b74afe9d21b986185af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga365d684482405b74afe9d21b986185af">&#9670;&nbsp;</a></span>MV_CC_DestroyInterface()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_DestroyInterface </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>销毁采集卡句柄 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 采集卡句柄 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_interface_demo_8cpp-example.html#a38">InterfaceDemo.cpp</a>.</dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<div class="footer" style="text-align: right;">
	<hr/>
	<small></small>
</div>
<script>
	// 当前选中的菜单
	var currentMenuItem = document.querySelector('.tablist > li.current > a')
	if (currentMenuItem) { // 子菜单情况
	  window.parent.postMessage({
		navHref: currentMenuItem.href
	  }, '*')
	} else {
	  window.parent.postMessage({
		url: window.location.href
	  }, '*')
	}
  </script>
</body>
</html>